/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package models;

import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author qiang4.lq4
 * @version $Id: VTruckInfoEntity.java, v 0.1 2017-03-12 16:25 qiang4.lq4 Exp $$
 */
@Entity
@Table(name = "v_TruckInfo", schema = "dbo", catalog = "iXManage")
public class VTruckInfoEntity {
    private Integer fdRowId;
    private Integer fdDeptId;
    private BigDecimal fdLoadCapacity;
    private Timestamp fdModifiedDate;
    private Integer fdTruckHeight;
    private Integer fdTruckLength;
    private String fdTruckNumber;
    private Integer fdTruckWidth;
    private String fdgps;
    /**
     * Getter method for property fdRowId.
     *
     * @return property value of fdRowId
     */

    @Id
    @Basic
    @Column(name = "fd_RowID", nullable = false)
    public Integer getFdRowId() {
        return fdRowId;
    }

    /**
     * Setter method for property fdRowId.
     *
     * @param fdRowId value to be assigned to property fdRowId
     */
    public void setFdRowId(Integer fdRowId) {
        this.fdRowId = fdRowId;
    }

    /**
     * Getter method for property fdDeptId.
     *
     * @return property value of fdDeptId
     */
    @Basic
    @Column(name = "fd_DeptID", nullable = false)
    public Integer getFdDeptId() {
        return fdDeptId;
    }

    /**
     * Setter method for property fdDeptId.
     *
     * @param fdDeptId value to be assigned to property fdDeptId
     */
    public void setFdDeptId(Integer fdDeptId) {
        this.fdDeptId = fdDeptId;
    }

    /**
     * Getter method for property fdLoadCapacity.
     *
     * @return property value of fdLoadCapacity
     */
    @Basic
    @Column(name = "fd_LoadCapacity", nullable = false, precision = 2)
    public BigDecimal getFdLoadCapacity() {
        return fdLoadCapacity;
    }

    /**
     * Setter method for property fdLoadCapacity.
     *
     * @param fdLoadCapacity value to be assigned to property fdLoadCapacity
     */
    public void setFdLoadCapacity(BigDecimal fdLoadCapacity) {
        this.fdLoadCapacity = fdLoadCapacity;
    }

    /**
     * Getter method for property fdModifiedDate.
     *
     * @return property value of fdModifiedDate
     */
    @Basic
    @Column(name = "fd_ModifiedDate", nullable = false)
    public Timestamp getFdModifiedDate() {
        return fdModifiedDate;
    }

    /**
     * Setter method for property fdModifiedDate.
     *
     * @param fdModifiedDate value to be assigned to property fdModifiedDate
     */
    public void setFdModifiedDate(Timestamp fdModifiedDate) {
        this.fdModifiedDate = fdModifiedDate;
    }

    /**
     * Getter method for property fdTruckHeight.
     *
     * @return property value of fdTruckHeight
     */
    @Basic
    @Column(name = "fd_TruckHeight", nullable = false)
    public Integer getFdTruckHeight() {
        return fdTruckHeight;
    }

    /**
     * Setter method for property fdTruckHeight.
     *
     * @param fdTruckHeight value to be assigned to property fdTruckHeight
     */
    public void setFdTruckHeight(Integer fdTruckHeight) {
        this.fdTruckHeight = fdTruckHeight;
    }

    /**
     * Getter method for property fdTruckLength.
     *
     * @return property value of fdTruckLength
     */
    @Basic
    @Column(name = "fd_TruckLength", nullable = false)
    public Integer getFdTruckLength() {
        return fdTruckLength;
    }

    /**
     * Setter method for property fdTruckLength.
     *
     * @param fdTruckLength value to be assigned to property fdTruckLength
     */
    public void setFdTruckLength(Integer fdTruckLength) {
        this.fdTruckLength = fdTruckLength;
    }

    /**
     * Getter method for property fdTruckNumber.
     *
     * @return property value of fdTruckNumber
     */
    @Basic
    @Column(name = "fd_TruckNumber", nullable = false, length = 20)
    public String getFdTruckNumber() {
        return fdTruckNumber;
    }

    /**
     * Setter method for property fdTruckNumber.
     *
     * @param fdTruckNumber value to be assigned to property fdTruckNumber
     */
    public void setFdTruckNumber(String fdTruckNumber) {
        this.fdTruckNumber = fdTruckNumber;
    }

    /**
     * Getter method for property fdTruckWidth.
     *
     * @return property value of fdTruckWidth
     */
    @Basic
    @Column(name = "fd_TruckWidth", nullable = false)
    public Integer getFdTruckWidth() {
        return fdTruckWidth;
    }

    /**
     * Setter method for property fdTruckWidth.
     *
     * @param fdTruckWidth value to be assigned to property fdTruckWidth
     */
    public void setFdTruckWidth(Integer fdTruckWidth) {
        this.fdTruckWidth = fdTruckWidth;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) { return false; }

        VTruckInfoEntity that = (VTruckInfoEntity)o;

        if (fdRowId != null ? !fdRowId.equals(that.fdRowId) : that.fdRowId != null) { return false; }
        if (fdDeptId != null ? !fdDeptId.equals(that.fdDeptId) : that.fdDeptId != null) { return false; }
        if (fdLoadCapacity != null ? !fdLoadCapacity.equals(that.fdLoadCapacity) : that.fdLoadCapacity != null) {
            return false;
        }
        if (fdModifiedDate != null ? !fdModifiedDate.equals(that.fdModifiedDate) : that.fdModifiedDate != null) {
            return false;
        }
        if (fdTruckHeight != null ? !fdTruckHeight.equals(that.fdTruckHeight) : that.fdTruckHeight != null) {
            return false;
        }
        if (fdTruckLength != null ? !fdTruckLength.equals(that.fdTruckLength) : that.fdTruckLength != null) {
            return false;
        }
        if (fdTruckNumber != null ? !fdTruckNumber.equals(that.fdTruckNumber) : that.fdTruckNumber != null) {
            return false;
        }
        if (fdTruckWidth != null ? !fdTruckWidth.equals(that.fdTruckWidth) : that.fdTruckWidth != null) {
            return false;
        }

        return true;
    }

    @Override
    public int hashCode() {
        int result = fdRowId != null ? fdRowId.hashCode() : 0;
        result = 31 * result + (fdDeptId != null ? fdDeptId.hashCode() : 0);
        result = 31 * result + (fdLoadCapacity != null ? fdLoadCapacity.hashCode() : 0);
        result = 31 * result + (fdModifiedDate != null ? fdModifiedDate.hashCode() : 0);
        result = 31 * result + (fdTruckHeight != null ? fdTruckHeight.hashCode() : 0);
        result = 31 * result + (fdTruckLength != null ? fdTruckLength.hashCode() : 0);
        result = 31 * result + (fdTruckNumber != null ? fdTruckNumber.hashCode() : 0);
        result = 31 * result + (fdTruckWidth != null ? fdTruckWidth.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "fd_gps", nullable = true)
	public String getFdgps() {
		return fdgps;
	}

	public void setFdgps(String fdgps) {
		this.fdgps = fdgps;
	}
}